package com.charles.video.system.mapper;

import com.charles.video.system.vo.SearchVideoForm;
import com.charles.video.system.vo.VideoDetailVo;
import com.charles.video.system.vo.VideoTableDataVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface VideoInfoMapper {

    /**
     * 获取视频表格数据
     */
    List<VideoTableDataVo> queryVideoTableData(SearchVideoForm searchVideoForm);

    /**
     * 视频详情
     */
    VideoDetailVo queryVideoDetail(String videoId);

    /**
     * 修改视频
     */
    boolean modifyVideo(VideoDetailVo videoDetailVo);

    /**
     * 删除视频
     */
    boolean deleteVideo(String videoId);

    /**
     * 减少评论次数
     */
    void decreaseCommentCount(String videoId);

}
